Function |parent
fs/path::|parent
Usage
|parent(path)
Parameters
โณ path:
string
Return
โด Option<string>
Gives parent path.
Return the path up to the parent of the designated component (/usr
for /usr/bin
, none for /
).
Returns none if the path terminates in a root or prefix.